<!DOCTYPE HTML>
<html lang="en-US">

<head>
    <meta charset="UTF-8">
    <title>房间添加</title>
</head>
<link href="__PUBLIC__/assets/css/bs3/dpl.css" rel="stylesheet">
<link href="__PUBLIC__/assets/css/bs3/bui.css" rel="stylesheet">
<body>
    <div class="demo-content">
    <form class="form-horizontal" action="{:U('Hotel/room_add_handle')}" method="post" enctype="multipart/form-data">
        <div class="row" style="margin-top:24px">
          <div class="control-group span8">
            <label class="control-label">房间名称：</label>
            <div class="controls">
              <input name="title" data-tip='{"text":"例:总统套房","iconCls":"icon icon-home"}'  type="text" class="input-normal control-text">
            </div>
          </div>
        </div>
        <div class="row">
            <div class="control-group span8">
            <label class="control-label">房间数量：</label>
            <div class="controls">
              <input name="num"  data-tip='{"text":"剩余数量","iconCls":"icon icon-user"}'  type="text" class="input-normal control-text">
            </div>
            </div>
            <div class="control-group span8">
                <label class="control-label">房间类型：</label>
                <div class="controls">
                     <select name="cat_id" class="input-normal">
                         <foreach name="data" item='v'>
                             <option value="{$v.cat_id}">{$v.title}</option>
                         </foreach>
                    </select>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="control-group span8">
            <label class="control-label">房间大小：</label>
            <div class="controls">
              <input name="area"  data-tip='{"text":"供应商编码","iconCls":"icon icon-user"}'  type="text" class="input-normal control-text">cm<sup>2
            </div>
            </div>
            <div class="control-group span8">
            <label class="control-label">床规格：</label>
            <div class="controls">
              <input name="bed_standard"  data-tip='{"text":"供应商编码","iconCls":"icon icon-user"}'  type="text" class="input-normal control-text">
            </div>
            </div>
        </div>
        <div class="row">
            <div class="control-group span8">
            <label class="control-label">原价：</label>
            <div class="controls">
              <input name="price"  data-tip='{"text":"供应商编码","iconCls":"icon icon-user"}'  type="text" class="input-normal control-text">元
            </div>
            </div>
            <div class="control-group span8">
            <label class="control-label">优惠价：</label>
            <div class="controls">
              <input name="cprice"  data-tip='{"text":"供应商编码","iconCls":"icon icon-user"}'  type="text" class="input-normal control-text">元
            </div>
            </div>
            <div class="control-group span8">
            <label class="control-label">会员价：</label>
            <div class="controls">
              <input name="mprice"  data-tip='{"text":"供应商编码","iconCls":"icon icon-user"}'  type="text" class="input-normal control-text">元
            </div>
            </div>
            </div>
            <div class="row">
                <div class="control-group span8">
            <label class="control-label">获得积分：</label>
            <div class="controls">
              <input name="score"  data-tip='{"text":"剩余数量","iconCls":"icon icon-user"}'  type="text" class="input-normal control-text">
            </div>
            </div>
            <div class="control-group span8">
                <label class="control-label">是否启用：</label>
                <div class="controls">
                     <select name="enabled" class="input-normal"> 
                        <option value="1">已启用</option>
                        <option value="0">已禁用</option>
                    </select>
                </div>
            </div>
            </div>
        <div class="row">
          <div class="control-group span15">
            <label class="control-label">选择范围：</label>
            <div class="controls">
              <label class="checkbox"><input name="range[]" type="checkbox" value="is_index">首页推荐</label> 
              <label class="checkbox"><input name="range[]" type="checkbox" value="is_new">新品上市</label> 
              <label class="checkbox"><input name="range[]" type="checkbox" value="is_hot">火爆热卖</label>
              <label class="checkbox"><input name="range[]" type="checkbox" value="is_sale">超值优惠</label>
            </div>
          </div>
          <div class="control-group span15">
            <label class="control-label">商品图片：</label>
            <div class="controls">
              <input type="file" name="img">
            </div>
          </div>
        </div>
            <div class="row">
                <div class="control-group span8">
            <label class="control-label">详情介绍：</label>
                </div>
            </div>
        <!-- 加载编辑器的容器 -->
        <script style="margin-left:48px" id="container" name="content" type="text/plain">
            
        </script>
        <div class="row form-actions actions-bar">
            <div class="span13 offset3 ">
              <button name="save" type="submit" class="button button-primary">保存</button>
              <button name="reset" type="button" class="button">重置</button>
            </div>
        </div>
    </form>
    <!-- 配置文件 -->
    <script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.config.js"></script>
    <!-- 编辑器源码文件 -->
    <script type="text/javascript" src="__PUBLIC__/ueditor/ueditor.all.js"></script>
    <script src="__PUBLIC__/assets/js/jquery-1.8.1.min.js"></script>
  <script src="__PUBLIC__/assets/js/bui.js"></script>
    <script src="__PUBLIC__/ueditor/ueditor.parse.js"></script>
    <!-- 实例化编辑器 -->
    <script type="text/javascript">
        var ue = UE.getEditor('container',{
            toolbars:[
                ['undo','redo','bold','indent','italic','underline','strikethrough','fontfamily','fontsize','paragraph','simpleupload','forecolor','inserttable','insertrow','insertcol','splittorows','splittocols','deletecaption','inserttitle','mergecells','deletetable','edittable','edittd','cleardoc']
            ],
            autoHeightEnabled: false,
            autoFloatEnabled: false,
            initialFrameWidth:750,
            initialFrameHeight:200,
            UEDITOR_HOME_URL:"__PUBLIC__/ueditor/",
            imageUrl:"{:U('Hotel/upload')}",
            imagePath:"__ROOT__/Public/image/",
            autoClearinitialContent:false,
            WordCount:false,
            elementPathEnabled:false,
            autoFloatEnabled:false,
            textarea:'content'
        });
    </script>
</div>
</body>

</html>